package com.aaa.system.controller;

import com.aaa.core.entity.AclPermission;
import com.aaa.core.entity.Results;
import com.aaa.system.service.AclPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：ludi（206913808@qq.com）
 * @date ：Created in 2022/12/2 11:19
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/system/permission")
public class AclPermissionController {

    @Autowired
    private AclPermissionService permissionService;

    @GetMapping("/getByUserid/{userid}")
    public Results<AclPermission> getByUserid(@PathVariable Long userid){
        return permissionService.findByUserId(userid);
    }
}
